//导入
import Vue from 'vue'

import Vuex from 'vuex'

Vue.use(Vuex)

// 导出 vue实例对象
export default new Vuex.Store({
  // 储存
  state: {
    userInfo:{}
  },
  //修改
  mutations: {
   userInfodata(state,newdata){
     state.userInfo = newdata
   }
  },
  actions: {
  },
  modules: {
  }
})
